import os

structure = {
    "": ["__init__.py", "models.py", "serializers.py"],
    "services": ["__init__.py", "user_service.py", "merchant_service.py", "dish_service.py", "order_service.py"],
    "views": ["__init__.py", "user_views.py", "merchant_views.py", "dish_views.py", "order_views.py"]
}

for folder, files in structure.items():
    folder_path = os.path.join("app", folder)
    if folder:
        os.makedirs(folder_path, exist_ok=True)
    for file in files:
        file_path = os.path.join(folder_path, file)
        with open(file_path, 'a'):
            pass  # 创建空文件
        print(f"Created: {file_path}")